<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "members".
 *
 * @property int $mid 主键
 * @property int $mobile 手机号
 * @property string $password 密码
 * @property string $regtime 注册时间
 */
class Members extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'members';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['mobile'], 'integer'],
            [['regtime'], 'safe'],
            [['password'], 'string', 'max' => 32],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'mid' => '主键',
            'mobile' => '手机号',
            'password' => '密码',
            'regtime' => '注册时间',
        ];
    }
}
